import service from '@/utils/request'

export const usePatientProjectApi = (id: Number) => {
	return service.get('/sys/patientproject/' + id)
}

export const usePatientProjectSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/patientproject', dataForm)
	} else {
		return service.post('/sys/patientproject/save', dataForm)
	}
}
export const usePatientProjectsellistApi = (dataForm: any) => {
	return service.post('/sys/patientproject/sellist', dataForm)
}
export const usePatientProjectListApi = (dataForm: any) => {
	return service.post('/sys/patientproject/list', dataForm)
}
